package cn.itcast.nems.order.dao.entity;

import cn.itcast.nems.common.entity.LongIdEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 离线支付单头：现金、转账、POS刷卡等
 * </p>
 *
 * @author liyong
 * @since 2023-08-31
 */
@Getter
@Setter
@TableName("e2_offline_payment")
public class OfflinePayment extends LongIdEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 销售订单
     */
    private String orderId;

    /**
     * 单据号，生成规则："OP"+YYMMDD+ZEROFILL(MURMURHASH(UUID()),0,10)。示例：OP23082887654321
     */
    private String no;

    /**
     * 离线支付总金额。单位：分
     */
    private Integer totalAmount;

    /**
     * 操作者id
     */
    private String operatorId;

    /**
     * 操作者名字
     */
    private String operatorName;

    /**
     * 状态：待审核|PENDING、有效|VALID、已作废|REVOKE
     */
    private String state;

    /**
     * 备注
     */
    private String description;
}
